<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| Website details
|
| These details are used in generate/regenerate ads
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
|	Source tags
|--------------------------------------------------------------------------
*/

$config['param_partner_cm'] = 'esearch_tw_syndication_cm';
$config['param_partner_pm'] = 'esearch_tw_syndication_pm';

/*
|--------------------------------------------------------------------------
|	test domain for internal testing
|--------------------------------------------------------------------------
*/

$config['test_domain'] = 'clicking.com.tw';

/*
|--------------------------------------------------------------------------
|	Ads count limits
|--------------------------------------------------------------------------
*/
$config['first_ad_count_limit'] = 10;
$config['second_ad_count_limit'] = 8;
$config['third_ad_count_limit'] = 3;

/*
|--------------------------------------------------------------------------
| CM display settings
| cm_display_hours => first num is start hour,second is end hour
| cm_offset_num => decide the cm/pm percentage
|--------------------------------------------------------------------------
*/
$config['cm_display_hours'] = '6:21';
$config['cm_offset_num'] = 2;

/*
|--------------------------------------------------------------------------
| Ads initial needed terms
|--------------------------------------------------------------------------
*/

$config['initial_terms'] = 'param_type|title_color|desc_color|url_color|container_w|container_h|container_border_c|container_background_c|ysmlabel_color|title_fontsize|desc_fontsize|url_fontsize|css';
$config['initial_terms_rule'] = 
		array(
               array(
                     'field'   => 'param_type',
                     'label'   => 'param_type',
                     'rules'   => 'trim|required|xss_clean'
                  ),
               array(
                     'field'   => 'title_color',
                     'label'   => 'title_color',
                     'rules'   => 'trim|required|xss_clean|integer'
                  ),
               array(
                     'field'   => 'desc_color',
                     'label'   => 'desc_color',
                     'rules'   => 'trim|required|xss_clean|integer'
                  ),   
               array(
                     'field'   => 'url_color',
                     'label'   => 'url_color',
                     'rules'   => 'trim|required|xss_clean|integer'
                  ),   
               array(
                     'field'   => 'container_w',
                     'label'   => 'container_w',
                     'rules'   => 'trim|required|xss_clean|integer'
                  ),   
               array(
                     'field'   => 'container_h',
                     'label'   => 'container_h',
                     'rules'   => 'trim|required|xss_clean|integer'
                  ),   
               array(
                     'field'   => 'container_border_c',
                     'label'   => 'container_border_c',
                     'rules'   => 'trim|required|xss_clean|integer'
                  ),   
               array(
                     'field'   => 'container_background_c',
                     'label'   => 'container_background_c',
                     'rules'   => 'trim|required|xss_clean|integer'
                  ), 
				  /*  
               array(
                     'field'   => 'ysmlabel_color',
                     'label'   => 'ysmlabel_color',
                     'rules'   => 'trim|required|xss_clean|integer'
                  ),
                  */   
               array(
                     'field'   => 'title_fontsize',
                     'label'   => 'title_fontsize',
                     'rules'   => 'trim|required|xss_clean|integer'
                  ),   
               array(
                     'field'   => 'desc_fontsize',
                     'label'   => 'desc_fontsize',
                     'rules'   => 'trim|required|xss_clean|integer'
                  ),   
               array(
                     'field'   => 'url_fontsize',
                     'label'   => 'url_fontsize',
                     'rules'   => 'trim|required|xss_clean|integer'
                  ),   
               array(
                     'field'   => 'css',
                     'label'   => 'css',
                     'rules'   => 'trim|required|xss_clean'
                  )
            );
